package com.qef.com.mmovie.mvp.adapter;

import com.qef.com.mmovie.base.BaseRecycerViewAdapter;

import jp.wasabeef.recyclerview.adapters.AlphaInAnimationAdapter;
import jp.wasabeef.recyclerview.adapters.ScaleInAnimationAdapter;

/**
 * Created by guangjiego on 2017/4/7.
 */

public class RecyclerViewAnimator {
    public static ScaleInAnimationAdapter setAnimator(BaseRecycerViewAdapter adapter) {
        AlphaInAnimationAdapter alphaAdapter = new AlphaInAnimationAdapter(adapter);
        ScaleInAnimationAdapter scaleInAnimationAdapter = new ScaleInAnimationAdapter(alphaAdapter);
        alphaAdapter.setDuration(800);
        alphaAdapter.setFirstOnly(false);
        scaleInAnimationAdapter.setFirstOnly(false);
        return scaleInAnimationAdapter;
    }
}
